﻿using System;
using System.Diagnostics;
using System.Windows.Forms;

namespace Chromium_Updater
{
    public partial class AboutForm : Form
    {
        private static bool _open = false;

        public AboutForm()
        {
            InitializeComponent();
        }

        private void AboutForm_Load(object sender, EventArgs e)
        {
            _open = true;
            label1.Text = "Chromium Updater v" + Application.ProductVersion;
        }

        public void _Show()
        {
            if (!_open)
            {
                this.Show();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Process.Start("http://www.forums.tlokzz.com/misc.php?do=donate");
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start("http://www.tlokzz.com");
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start("http://www.betanews.com");
        }

        private void AboutForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            _open = false;
        }
    }
}
